// 管串结构

// 导入封装好的网络请求类工具
import request from '../../../../../utils/request';
// 封装各种接口请求
// export const 接口名 = () => Network.get('/路由',参数对象);

//管串结构-编辑保存数据
export const StringDesignUpdate = (form) => {
    return request({
        url: '/stringDesign/stringDesignUpdate',
        method: 'put',
        data: form
    })
}

//管串结构-删除数据
export const StringDesignDelete = (id) => {
    return request({
        url: `/stringDesign/stringDesignDelete/${id}`,
        method: 'delete'
    })
}

//管串结构--分页查询
export const FindStringDesign = (current,size,form) => {
    return request({   
        url: `/stringDesign/findStringDesignByPage/${current}/${size}`,
        method: 'post',  
        data:form
        
    })
}

//管串结构-查询数据
export const FindStringDesignByCondition = (searchModel) => {
    return request({
        url: '/stringDesign/findStringDesignByCondition',
        method: 'post',
        data: searchModel
    })
}

//管串-新增数据
export const StringDesignAdd = (form) => {
    return request({
        url: '/stringDesign/stringDesignAdd',
        method: 'post',
        data: form
    })
}